package com.xin.di.uav.applet.request;


import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.math.BigDecimal;

@Data
public class GoodsEditParam {

    @NotBlank(message = "id不能为空")
    private String id;
    @NotBlank
    private String name; // 商品名称
    @NotBlank
    private String mainImage; // 商品主图URL
    @NotNull
    private BigDecimal salePrice; // 销售价格(元)
    @NotNull
    private BigDecimal supplyPrice; // 供货价(元)
    @NotNull
    private int stock; // 库存数量
    @NotBlank
    private String merchantId; // 所属商家ID
    @NotNull
    private boolean status; // 状态(0-下架 1-上架)
    @NotBlank
    private String desc;

    private Integer ruleType;

    private String ruleInfo;

}
